package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface CommentApi {
    //评论列表分页
    List<Comment>findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment comment);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    // 小视频点赞
    Boolean videoComment(String videoId, Long userId, CommentType like);
    void saveVideo (Comment comment);

    // 小视频取消点赞
    void detele(Comment comment);

    // 视频评论列表
    List<Comment> findVideoComments(String videoId, CommentType comment, Integer page, Integer pagesize);

    // 视频发布评论
    void videoSave(Comment comment);

}
